<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>展示页面</title>
</head>
<body>

<a href="add.html">添加</a> <hr color="red">
<table width="70%" border="1px">
    <tr>
        <td>编号</td>
        <td>名称</td>
        <td>数量</td>
        <td>是否显示</td>
        <td>操作</td>
    </tr>
    <tr th:each="c : ${list}">
        <td th:text="${c.id}"></td>
        <td th:text="${c.name}"></td>
        <td th:text="${c.goodsNum}"></td>
        <td th:text="${c.isShow==1}?'是':'否'"></td>
        <td>
            <a th:href="@{/del(id=${c.id})}">删除</a>
            <a th:href="@{/findById(id=${c.id})}">修改</a>
        </td>
    </tr>

<!--</table>-->
<!--【{{page.pageNum}}/{{page.pages}}】-->
<!--<input type="button" value="首页"   @click="findAll(page.firstPage)" v-if="!page.isFirstPage">-->
<!--<input type="button" value="上一页" @click="findAll(page.prePage)"   v-if="page.hasPreviousPage">-->
<!--<input type="button" :value="p"     @click="findAll(p)"              v-for="p in page.pages">-->
<!--<input type="button" value="下一页" @click="findAll(page.nextPage)"  v-if="page.hasNextPage">-->
<!--<input type="button" value="尾页"   @click="findAll(page.lastPage)"  v-if="!page.isLastPage">-->
<!--共【{{page.pages}}】页数据-->



</body>
</html>